package com.resrun.dao;

import com.resrun.model.CACert;
import org.springframework.stereotype.Repository;

@Repository
public interface CACertDao {

    int insert(CACert cert);

    CACert getById(Long certId);

    int insertSelective(CACert cert);

    CACert getLatestCertByUserId(Long userId);

    CACert getLatestCertByEnterpriseId(Long enterpriseId);

    int updateCert(CACert cert);

    CACert getByRequestId(Long id);
}
